<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Modern UI CSS">
    <meta name="author" content="Sergey Pimenov">
    <meta name="keywords" content="windows 8, modern style, modern ui, style, modern, css, framework">

    <link href="css/modern.css" rel="stylesheet">
    <link href="css/site.css" rel="stylesheet" type="text/css">
    <link href="js/google-code-prettify/prettify.css" rel="stylesheet" type="text/css">

    <script src="js/jquery-1.8.2.min.js"></script>
    <script src="js/google-analytics.js"></script>
    <script src="js/github.info.js"></script>
    <script src="js/google-code-prettify/prettify.js"></script>
    <script src="js/pagecontrol.js"></script>
    <script src="js/carousel.js"></script>

    <title>Popular Destination</title>
</head>
<body class="modern-ui" onload="prettyPrint()">
<%
	String id = request.getParameter("id");
%>
    <div class="page secondary">
        
        <div class="page-header">
            <div class="page-header-content">
                <h1>Popular Destination</h1>
                <a href="/Website/index_manager.jsp?id=<%=id %>" class="back-button big page-back"></a>
            </div>
        </div>

        <div class="page-region">
            <div class="page-region-content">
				<br>
				<br>		
				
				
				
					<table class="hovered" style="padding: 20px; width: 550px;">
						<thead>
							<tr>
								<th class="Left">Destination</th>
								<th class="left">Count</th>
							</tr>
							
							<tbody>
								<c:forEach items="${destList}" var="destInfo">
									<tr>
										<td>
											
						                    <div class="carousel" style="height: 190px;" data-role="carousel" data-param-effect="fade" data-param-direction="left" data-param-period="3000" data-param-markers="off">
						                        <div class="slides">
						                            <div class="slide image" id="slide4">
						                                <img src=<c:out value="${destInfo.image1}" /> />
						                                <div class="description" align = "middle">
						                                	<c:out value="${destInfo.arrivalLocation}" />
						                                </div>
						                            </div>
						                            <div class="slide image" id="slide5">
						                                <img src="<c:out value="${destInfo.image2}" />" />
						                                <div class="description" align = "middle">
						                                	<c:out value="${destInfo.arrivalLocation}" />
						                                </div>
						                            </div>
						                        </div>
					
					
						                        <span class="control left">&#8249;</span>
						                        <span class="control right">&#8250;</span>
					
					                    	</div>
						                	
										</td>
										<td><c:out value="${destInfo.count}" /></td>
										
									</tr>
								</c:forEach>	
																					
							</tbody>						
						</thead>
							
					</table>
				
            </div>
     	</div>
    </div>

</body>
</html>